<?php    
    $c = new Criteria();
    $versiones = VersionPeer::doSelect($c);
    if ($dimension->getVersionId()) {
        $version_selected = $dimension->getVersionId();
    } else if (count($versiones)>0){
        $version_selected = $versiones[0]->getId();
    } else {
        $version_selected = "";
    }

    echo select_tag('dimension[version_id]',objects_for_select($versiones,'getId','getNombre',$version_selected,'include_custom=Seleccione'));
                                                            
?>
